<template>
    <div>
        <h1>作业</h1>
        <input type="text" v-model="Vprice" />
        <button @click="search">搜索</button>
        <button @click="reset">重置</button>
        <hr>
        <Son/>
    </div>
</template>

<script setup>

import useStore from './store/index';
import Son from './Son.vue'
import { ref } from 'vue';

const store = useStore()

const Vprice = ref('')

const search = e =>{
    store.searchAction(Vprice.value)
    Vprice.value = ''
}

const reset = e =>{
    store.initListAction()
    Vprice.value = ''
}

</script>

<style lang="scss" scoped>

</style>